Meaning of the word "go to any lengths" in English

What does "go to any lengths" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

go to any lengths

US /ɡoʊ tu ˈɛni lɛŋθs/
UK /ɡəʊ tu ˈɛni lɛŋθs/
"go to any lengths" picture

Idiom

to do whatever is necessary to achieve something, even if it is difficult or extreme

Example:
She would go to any lengths to protect her children.
He was willing to go to any lengths to win the competition.